package cn.gson.fengboot.model.pojos;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.List;
import java.util.Objects;

@Entity
public class Lxsfy {
    private int xsfyId;//销售费用id
    private String xsfyJsr;//销售费用经手人
    private String xsfyKh;//客户
    private Timestamp xsfyDate;//日期
    private Integer xsfyJe;//费用金额
    private String xsfyLb;//费用类别
    private String xsfySpzt;//审批状态
    private String xsfyBx;//费用报销
    private String xsfySpr;//审批人
    private Integer xsfyPjzs;//票据张数
    private String xsfyYt;//费用用途
    private String xsfyDyjh;//对应机会
    private Integer xsfyFplx;//发票类型
    private String xsfyFpsl;//发票税率
    private String xsfyBeizhu;//备注
    private String xsfyChucha;//费用出差
    private int xsfyZhuangtai;//状态删除
    private QempFrom empId;//员工

    //一个员工可能申请多次，多对一
    @ManyToOne
    @JoinColumn(name = "emp_id")
    public QempFrom getEmpId() {
        return empId;
    }

    public void setEmpId(QempFrom empId) {
        this.empId = empId;
    }

    @Id
    @Column(name = "xsfy_id")
    public int getXsfyId() {
        return xsfyId;
    }

    public void setXsfyId(int xsfyId) {
        this.xsfyId = xsfyId;
    }

    @Basic
    @Column(name = "xsfy_jsr")
    public String getXsfyJsr() {
        return xsfyJsr;
    }

    public void setXsfyJsr(String xsfyJsr) {
        this.xsfyJsr = xsfyJsr;
    }

    @Basic
    @Column(name = "xsfy_kh")
    public String getXsfyKh() {
        return xsfyKh;
    }

    public void setXsfyKh(String xsfyKh) {
        this.xsfyKh = xsfyKh;
    }

    @Basic
    @Column(name = "xsfy_date")
    public Timestamp getXsfyDate() {
        return xsfyDate;
    }

    public void setXsfyDate(Timestamp xsfyDate) {
        this.xsfyDate = xsfyDate;
    }

    @Basic
    @Column(name = "xsfy_je")
    public Integer getXsfyJe() {
        return xsfyJe;
    }

    public void setXsfyJe(Integer xsfyJe) {
        this.xsfyJe = xsfyJe;
    }

    @Basic
    @Column(name = "xsfy_lb")
    public String getXsfyLb() {
        return xsfyLb;
    }

    public void setXsfyLb(String xsfyLb) {
        this.xsfyLb = xsfyLb;
    }


    @Basic
    @Column(name = "xsfy_spzt")
    public String getXsfySpzt() {
        return xsfySpzt;
    }

    public void setXsfySpzt(String xsfySpzt) {
        this.xsfySpzt = xsfySpzt;
    }

    @Basic
    @Column(name = "xsfy_bx")
    public String getXsfyBx() {
        return xsfyBx;
    }

    public void setXsfyBx(String xsfyBx) {
        this.xsfyBx = xsfyBx;
    }

    @Basic
    @Column(name = "xsfy_spr")
    public String getXsfySpr() {
        return xsfySpr;
    }

    public void setXsfySpr(String xsfySpr) {
        this.xsfySpr = xsfySpr;
    }

    @Basic
    @Column(name = "xsfy_pjzs")
    public Integer getXsfyPjzs() {
        return xsfyPjzs;
    }

    public void setXsfyPjzs(Integer xsfyPjzs) {
        this.xsfyPjzs = xsfyPjzs;
    }

    @Basic
    @Column(name = "xsfy_yt")
    public String getXsfyYt() {
        return xsfyYt;
    }

    public void setXsfyYt(String xsfyYt) {
        this.xsfyYt = xsfyYt;
    }

    @Basic
    @Column(name = "xsfy_dyjh")
    public String getXsfyDyjh() {
        return xsfyDyjh;
    }

    public void setXsfyDyjh(String xsfyDyjh) {
        this.xsfyDyjh = xsfyDyjh;
    }

    @Basic
    @Column(name = "xsfy_fplx")
    public Integer getXsfyFplx() {
        return xsfyFplx;
    }

    public void setXsfyFplx(Integer xsfyFplx) {
        this.xsfyFplx = xsfyFplx;
    }

    @Basic
    @Column(name = "xsfy_fpsl")
    public String getXsfyFpsl() {
        return xsfyFpsl;
    }

    public void setXsfyFpsl(String xsfyFpsl) {
        this.xsfyFpsl = xsfyFpsl;
    }

    @Basic
    @Column(name = "xsfy_beizhu")
    public String getXsfyBeizhu() {
        return xsfyBeizhu;
    }

    public void setXsfyBeizhu(String xsfyBeizhu) {
        this.xsfyBeizhu = xsfyBeizhu;
    }

    @Basic
    @Column(name = "xsfy_chucha")
    public String getXsfyChucha() {
        return xsfyChucha;
    }

    public void setXsfyChucha(String xsfyChucha) {
        this.xsfyChucha = xsfyChucha;
    }

    @Basic
    @Column(name = "xsfy_zhuangtai")
    public int getXsfyZhuangtai() {
        return xsfyZhuangtai;
    }

    public void setXsfyZhuangtai(int xsfyZhuangtai) {
        this.xsfyZhuangtai = xsfyZhuangtai;
    }
}
